home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
burglr
/
animate.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
4KB
|
131 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00FFFFFF&
Caption = "Form1"
ClientHeight = 4020
ClientLeft = 1095
ClientTop = 1770
ClientWidth = 7365
Height = 4710
Icon = ANIMATE.FRX:0000
Left = 1035
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 4020
ScaleWidth = 7365
Top = 1140
Width = 7485
Begin PictureBox Picture4
AutoSize = -1 'True
Height = 510
Left = 720
Picture = ANIMATE.FRX:0302
ScaleHeight = 480
ScaleWidth = 480
TabIndex = 3
Top = 2760
Width = 510
End
Begin PictureBox Picture3
AutoSize = -1 'True
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
Height = 375
Left = 2520
ScaleHeight = 375
ScaleWidth = 375
TabIndex = 2
Top = 1920
Width = 375
End
Begin PictureBox Picture2
AutoSize = -1 'True
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
Height = 495
Left = 960
ScaleHeight = 495
ScaleWidth = 495
TabIndex = 1
Top = 1440
Width = 495
End
Begin PictureBox Picture1
AutoSize = -1 'True
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
Height = 495
Left = 600
ScaleHeight = 495
ScaleWidth = 495
TabIndex = 0
Top = 600
Width = 495
End
Begin Menu Animatecom
Caption = "&Animate"
Begin Menu Startcom
Caption = "&Start"
End
Begin Menu exitcom
Caption = "E&xit"
End
End
End
Sub exitcom_Click ()
End
End Sub
Sub Form_Load ()
form1.windowstate = 2
picture1.visible = 0
picture2.visible = 0
picture3.visible = 0
picture4.visible = 0
End Sub
Sub Startcom_Click ()
form1.drawwidth = 1
form1.drawstyle = 4
picture4.visible = 0
picture1.visible = 0
picture2.visible = 0
picture3.visible = 0
picture1.top = form1.top + (picture4.height)
picture1.left = form1.left - (picture1.width + picture4.width)
picture1.picture = LoadPicture("burglar2.ico")
picture2.picture = LoadPicture("burglar3.ico")
picture3.picture = LoadPicture("burglar4.ico")
picture1.visible = 1
walkacross:
For q = 1 To 75
picture4.top = picture1.top - 25
form1.Line (form1.left, picture4.top + picture4.height + 2)-Step(form1.left + form1.width, 0)
picture2.top = picture1.top
picture2.left = picture1.left + 50
picture4.left = picture2.left - picture4.width
picture4.visible = -1
picture2.visible = -1
picture1.visible = 0
picture3.top = picture1.top
picture3.left = picture2.left + 50
picture4.left = picture3.left - picture4.width
picture4.visible = -1
picture3.visible = -1
picture2.visible = 0
picture1.left = picture3.left + 50
picture4.left = picture1.left - picture4.width
picture4.visible = -1
picture1.visible = -1
picture3.visible = 0
x = DoEvents()
Next
picture1.left = form1.left - (picture1.width + picture4.width)
picture1.top = picture1.top + (picture1.height * 2)
If picture1.top > form1.height Then picture1.top = form1.top + picture4.height
GoTo walkacross
End Sub